package com.peycash.ws.endpoint;

public class ClienteOpEndpointProxy implements com.peycash.ws.endpoint.ClienteOpEndpoint {
  private String _endpoint = null;
  private com.peycash.ws.endpoint.ClienteOpEndpoint clienteOpEndpoint = null;
  
  public ClienteOpEndpointProxy() {
    _initClienteOpEndpointProxy();
  }
  
  public ClienteOpEndpointProxy(String endpoint) {
    _endpoint = endpoint;
    _initClienteOpEndpointProxy();
  }
  
  private void _initClienteOpEndpointProxy() {
    try {
      clienteOpEndpoint = (new com.peycash.ws.endpoint.RegistroLocator()).getClienteOpEndpointPort();
      if (clienteOpEndpoint != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)clienteOpEndpoint)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)clienteOpEndpoint)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (clienteOpEndpoint != null)
      ((javax.xml.rpc.Stub)clienteOpEndpoint)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.peycash.ws.endpoint.ClienteOpEndpoint getClienteOpEndpoint() {
    if (clienteOpEndpoint == null)
      _initClienteOpEndpointProxy();
    return clienteOpEndpoint;
  }
  
  public com.peycash.ws.endpoint.NuevoClienteResponseDTO addCliente(com.peycash.ws.endpoint.NuevoClienteRequestDTO arg0) throws java.rmi.RemoteException{
    if (clienteOpEndpoint == null)
      _initClienteOpEndpointProxy();
    return clienteOpEndpoint.addCliente(arg0);
  }
  
  
}